package ir;

public enum RuntimeErrorType {
	
	NullPointerDereferrence("Runtime Error: Null pointer dereference!"),
	ArrayIndexOutOfBounds("Runtime Error: Array index out of bounds!"),
	ArrayAllocationNegative("Runtime Error: Array allocation with negative array size!"),
	DivisionByZero("Runtime Error: Division by zero!");
	
	private final String name;       

    private RuntimeErrorType(String s) {
        name = s;
    }
	
    public String toString(){
        return name;
     }
}
